package com.xc.stock.dto.model;

import com.xc.stock.domain.basic.entity.Account;
import com.xc.stock.domain.basic.entity.AccountAction;
import com.xc.stock.domain.basic.entity.AccountLog;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class AccountInfo {
	Account account;
	AccountAction action;
	AccountLog log;
	
	public boolean flag() {
		return action != null;
	}
}
